package com.example.springbootdemo.scene.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.Data;

/**
 *@author xuwangqi
 *@date 2021/5/24 15:58
 **/
/**
    * 集结项表，记录到每个用户的邀请记录
    */
@ApiModel(value="com-example-springbootdemo-scene-entity-ConvergeItem")
@Data
@TableName(value = "converge_item")
public class ConvergeItem {
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value="")
    private Integer id;

    /**
     * 会员id
     */
    @TableField(value = "member_id")
    @ApiModelProperty(value="会员id")
    private Long memberId;

    /**
     * 会员昵称
     */
    @TableField(value = "nickname")
    @ApiModelProperty(value="会员昵称")
    private String nickname;

    /**
     * 会员头像
     */
    @TableField(value = "avatar")
    @ApiModelProperty(value="会员头像")
    private String avatar;

    /**
     * 父集结id
     */
    @TableField(value = "pid")
    @ApiModelProperty(value="父集结id")
    private Integer pid;

    /**
     * 集结点
     */
    @TableField(value = "poi")
    @ApiModelProperty(value="集结点")
    private Object poi;

    /**
     * 状态标签
     */
    @TableField(value = "label")
    @ApiModelProperty(value="状态标签")
    private String label;

    @TableField(value = "gmt_create")
    @ApiModelProperty(value="")
    private Date gmtCreate;

    @TableField(value = "gmt_modified")
    @ApiModelProperty(value="")
    private Date gmtModified;

    /**
     * 是否删除，1被删除，0未删除
     */
    @TableField(value = "is_deleted")
    @ApiModelProperty(value="是否删除，1被删除，0未删除")
    private Byte isDeleted;

    /**
     * 集结状态
1 集结中
2 集结关闭
     */
    @TableField(value = "status")
    @ApiModelProperty(value="集结状态,1 集结中,2 集结关闭")
    private Byte status;

    public static final String COL_ID = "id";

    public static final String COL_MEMBER_ID = "member_id";

    public static final String COL_NICKNAME = "nickname";

    public static final String COL_AVATAR = "avatar";

    public static final String COL_PID = "pid";

    public static final String COL_POI = "poi";

    public static final String COL_LABEL = "label";

    public static final String COL_GMT_CREATE = "gmt_create";

    public static final String COL_GMT_MODIFIED = "gmt_modified";

    public static final String COL_IS_DELETED = "is_deleted";

    public static final String COL_STATUS = "status";
}